<template>
	<view>
		<zy-title title="举报"></zy-title>
		<view class="zy-page-padding zy-mt-50">
			<view class="zy-text-white-lg-bold">举报内容</view>
			<view class="zy-mt-lg content">
				<textarea v-model="message" placeholder="请输入举报内容"/>
			</view>
			
			<zy-button class="zy-mt-100" content="提交" @click="submit"></zy-button>
		</view>
	</view>
</template>

<script>
	import RouteUtil from '@/main/common/RouteUtil';
	export default{
		data(){
			return{
				otherUserId: '',
				message: '',
				types:['恶意骚扰', '诈骗', '政治暴恐', '盗用侵权', '传播谣言', '其他' ],
				checkedItem: '',
			}
		},
		onLoad(option) {
			this.otherUserId = option.userId;
		},
		methods:{
			change(item){
				this.checkedItem = item;
			},
			async submit(){
				if(''==this.message){
					uni.$toast.showToast("请输入举报内容")
					return
				}
				// if(''==this.content){
					// this.$common.showToast("请选择举报类型")
				// 	return
				// }
				uni.$http.post('/api/report/saveReport', params).then(res=>{
					uni.$toast.showToast("举报成功")
					RouteUtil.back()
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		height: 200rpx;
		border: 1rpx solid rgba(#fff, 0.2);
		padding: 20rpx;
		border-radius: 20rpx;
	}
	
	
</style>